require 'hmac-sha1'
require 'digest/md5'
require 'base64'

module ApiHelpers
  def api path, version
    "/api/v#{version}/#{path}"
  end

  def json_response
    JSON.parse(response.body)
  end
end